import {Effect} from "../../IEffectContainer";
import {logUtil} from "../../../util/logUtil";
import {ActorActionManager} from "../../../manager/ActorActionManager";

export class gong extends Effect {
    logLevel = "gong"

    apply(target: ActorActionManager) {
        super.apply(target)
        this.log.log(this.logLevel, '数据处理')
        this.remove(target)
        target.actorProperty.attack=target.actorProperty.attack*this.num[this.level-1]
    }

    //不会调用
    remove(target: ActorActionManager) {
        this.log.log(this.logLevel, `当前攻击力${target.actorProperty.attack},原始攻击力${target.data.attack}`);
        target.actorProperty.attack=target.data.attack
    }
}
